package com.dkm.biz.gl.persistence.entity;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:系统分类类型 Tbl对象
 * 开发公司:SKG.COM
 * 开发人员:刘启辉
 * 创建时间:2015-01-17 09:01:36
 */
 @ITable(name="glCateType",code="t_gl_cate_type")
public class GlCateTypeTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*id_*/
	@IField(name="name",column="name_")
	protected String  name; 		/*name_*/
	@IField(name="key",column="key_")
	protected String  key; 		/*key_*/
	@IField(name="sort",column="sort_")
	protected Integer  sort; 		/*sort_*/
	@IField(name="isTree",column="is_tree_")
	protected char  isTree; 		/*N=否（平铺）；Y=是*/
	@IField(name="isProtected",column="is_protected_")
	protected char  isProtected; 		/*是否不允许删除。Y=是；N=否*/
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 id_
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}
	/**
	 * 返回 name_
	 * @return
	 */
	public String getName() 
	{
		return this.name;
	}
	public void setKey(String key) 
	{
		this.key = key;
	}
	/**
	 * 返回 key_
	 * @return
	 */
	public String getKey() 
	{
		return this.key;
	}
	public void setSort(Integer sort) 
	{
		this.sort = sort;
	}
	/**
	 * 返回 sort_
	 * @return
	 */
	public Integer getSort() 
	{
		return this.sort;
	}
	public void setIsTree(char isTree) 
	{
		this.isTree = isTree;
	}
	/**
	 * 返回 N=否（平铺）；Y=是
	 * @return
	 */
	public char getIsTree() 
	{
		return this.isTree;
	}
	public void setIsProtected(char isProtected) 
	{
		this.isProtected = isProtected;
	}
	/**
	 * 返回 是否不允许删除。Y=是；N=否
	 * @return
	 */
	public char getIsProtected() 
	{
		return this.isProtected;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("name", this.name) 
		.append("key", this.key) 
		.append("sort", this.sort) 
		.append("isTree", this.isTree) 
		.append("isProtected", this.isProtected) 
		.toString();
	}
}